package com.wanghua.mall.auth.constant;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author wanghua
 * @create 2021-09-06 18:58
 */
@Component
public class AuthConstant implements InitializingBean {
    @Value("${gitee.redirect_uri}")
    private String redirect_uri;
    @Value("${gitee.client_id}")
    private String client_id;
    @Value("${gitee.client_secret}")
    private String client_secret;

    public static String REDIRECT_URI;
    public static String CLIENT_ID;
    public static String CLIENT_SECRET;


    @Override
    public void afterPropertiesSet() throws Exception {
        REDIRECT_URI = redirect_uri;
        CLIENT_ID = client_id;
        CLIENT_SECRET = client_secret;
    }
}
